package com.tianxin.workbao.workBao.common;

import java.text.DecimalFormat;

/**
 * 常量
 */
public class Constant {
    // TODO: 2017/6/19  到系统上线的时候设置为 0;
    public static final int APP_DEBUG =0;
    //0货场备用的SEVER 1公司的主服务器 2开发调试主服务(办公室)
    public static final int SERVER_URL_TYPE = 1;
    //GreenDao
    // TODO: 2017/6/19  到系统上线的时候设置为 false;
    public static final boolean GREEN_DAO_DEBUG = true;
    public static final String THEME_MODEL = "theme_model";
    public static final String DB = "txmy.db";
    //apk
    public static final String DOWNLOADPATH = "/apk/";
    //验证手机号正则表达式
    public static final String MOBILE_REGEX = "^((13[0-9])|(14[5|7])|(15([0-3]|[5-9]))|(18[0,5-9]))\\d{8}$";

    //decimal format
    public static final DecimalFormat mDecimalFormat = new DecimalFormat("0.00");

    //加载数据
    public static final int CLOSE_DIALOG = -100;
    public static final int LOAD_FAILURE = 0;
    public static final int LOADING = 1;
    public static final int LOADINGED = 2;
    public static final String LOAD_FAILURE_MSG = "加载失败";
    public static final String LOADING_MSG = "玩命加载中。。。";
    public static final String LOADINGED_MSG = "加载成功";
    public static final String NO_DATA = "没有数据";
    public static final int REQUEST_FINISH = 200;
    public static final String APPTOKEN_NAME = "apptoken";
    public static final String APPTOKEN_VALUE = "f0f4307fcea2a9cb6046dd982d03b0bb";

    //分页
    public static final int USER_PAGE_SIZE = 12;
    public static final int COAL_PAGE_SIZE = 12;
    public static final int BACK_BILL_PAGE_SIZE = 8;
    public static final int LOAD_CAR_PAGE_SIZE = 8;

    //请求返回的JSON结构
    public static final String RESPONSE_STATUS = "status";
    public static final String RESPONSE_INFO = "info";
    public static final String RESPONSE_DATA = "data";
    public static final String RESPONSE_URL = "url";
    public static final String COM_TAG = "----------->";


    //temp save user information
    public static final String CURRENT_USER_ID = "current_user_id";
    public static final String CURRENT_USER_NAME = "current_user_name";
    public static final String CURRENT_USER_USERNAME = "current_user_userName";
    public static final String CURRENT_USER_PASSWORD = "current_user_password";
    public static final String CURRENT_USER_HEADER = "current_user_header";
    public static final String CURRENT_USER_LOGIN_TIME = "current_user_login_time";
    public static final String CURRENT_USER_LOGIN_num = "current_user_login_num";
    public static final String CURRENT_USER_GENDER = "current_user_gender";
    public static final String CURRENT_USER_MOBILE = "current_user_mobile";
    public static final String CURRENT_USER_ORGID = "current_user_org_id";
    public static final String CURRENT_USER_ORG_NAME = "current_user_org_name";
    public static final String CURRENT_USER_PORGID = "current_user_p_org_id";
    public static final String CURRENT_USER_PORG_NAME = "current_user_p_org_name";
    public static final String CURRENT_USER_APPTOKEN = "app_token";
    public static final String LOGIN_USER_NAME = "username";
    public static final String LOGIN_PASSWORD = "password";

    // loader car status 装车状态
    public static final int LOAD_STATUS_NO = 0;
    public static final int LOAD_STATUS_LOADING = 1;
    public static final int LOAD_STATUS_LOADED = 2;

    //customer type 1、销售公司；2、采购公司；3、销售和采购公司；4、运输公司
    public static final int CUSTOMER_TYPE_SALE = 1;
    public static final int CUSTOMER_TYPE_BUY = 2;
    public static final int CUSTOMER_TYPE_TWO = 3;
    public static final int CUSTOMER_TYPE_TRANS = 4;

    // in or out type 1出 2入
    public static final int TYPE_OUT = 1;
    public static final int TYPE_IN = 2;
    //data type
    public static final int TODAY_DATA = 0;
    public static final int WEEK_DATA = 1;
    public static final int MONTH_DATA = 2;
    public static final int SEASON_DATA = 3;
    public static final int YEAR_DATA = 4;
    public static final int YESTERDAY_DATA = 5;
    public static final int LAST_WEEK_DATA = 6;
    public static final int LAST_MONTH_DATA = 7;
    public static final int LAST_YEAR_DATA = 8;

    //0 天 1 周 2 月 3 年
    public static final int DATA_TYPE_DAY = 0;
    public static final int DATA_TYPE_WEEK = 1;
    public static final int DATA_TYPE_MONTH = 2;
    public static final int DATA_TYPE_YEAR = 3;


    // number header
    public static final String SAMPLING_HEADER = "CYD";
    public static final String TEST_HEADER = "HYD";
    public static final String FUELDIARY_HEADER = "YEJY";
    public static final String TRANS_CONTRACT_HEADER = "YSHT";
    public static final String WAS_WORK_HEADER = "XMBC";

    //select Type
    public static final int SELECT_TYPE_COAL = 0;
    public static final int SELECT_TYPE_SUPPLY = 1;
    public static final int SELECT_TYPE_CUSTOMER = 2;
    public static final int SELECT_TYPE_LOADER = 3;
    public static final int SELECT_TYPE_CAR = 4;
    public static final int SELECT_TYPE_INPUT = 5;
    public static final int SELECT_TYPE_FACTORY = 6;
    public static final int SELECT_TYPE_ADDRESS = 6;
    // car finance statistics
    public static final int CAR_FINANCE_IN = 1;
    public static final int CAR_FINANCE_OUt = 2;

    //permission controller
    public static String ROLE_MARKETING = "marketing";
    public static String ROLE_MARKETING_ADMIN = "mkadmin";
    public static String ROLE_MARKETING_SAMPLINGER = "samplinger";
    public static String ROLE_MARKETING_TESTER = "test";
    public static String ROLE_MARKETING_TEST_ADMIN = "testadmin";
    public static String ROLE_MARKETING_BACK_BILL = "backBillManager";
    public static String ROLE_MARKETING_SALES_MANAGER = "salesManager";
    public static String ROLE_MARKETING_SALES_ASSISTANT = "salesAssistant";
    public static String ROLE_MARKETING_CASHIER = "marketingCashier";
    public static String ROLE_MARKETING_WEIGHER = "weigher";
    public static String ROLE_MARKETING_LOAD = "load";//装载机驾驶员

    public static String ROLE_TRANS = "transport";
    public static String ROLE_TRANS_ADMIN = "tsadmin";
    public static String ROLE_TRANS_FREIGHT_CLERK = "freightClerk";
    public static String ROLE_TRANS_FREIGHT_CLERK_OAUTHER = "freightClerkOauther";

    public static String ROLE_WASH_ADMIN = "wsadmin";

    public static String ROLE_GASSTATION = "gasstation";
    public static String ROLE_GASSTATION_ADMIN = "gsadmin";
    public static String ROLE_GASSTATION_OILER = "oiler";

    public static String ROLE_HUMAN_RESOURCES = "humanResources";
    public static String ROLE_ALL_ADMIN = "alladmin";


}
